import mitt from "mitt"

export type ValidateFunc = () => boolean
type Events = {'form-item-created': ValidateFunc}
const emitter = mitt<Events>()
export default emitter